package instrumentation;
import java.util.*;
public class MethodBranchs {
	private int startBranchId;
	private int endBranchId;
	private String mName;
	private List<String> calls= new ArrayList<String>();;
	public MethodBranchs(String mName,int startBranchId,int endBranchId,List<String> calls ) {
		this.startBranchId = startBranchId;
		this.endBranchId = endBranchId;
		this.mName = mName;
		this.calls.addAll(calls);
	}
	public List getCalls(){
		return calls;
	}
	
	@Override
	public String toString() {
		return " " + startBranchId + " : " + endBranchId + " = " + (endBranchId-startBranchId+1) ;
	}	

	public String callsToString() {
		String mCalls="(";
		for(int i=0;i<calls.size();i++)
			mCalls=mCalls+ calls.get(i).toString()+ "," ;
		return mCalls+ ")" ;
	}	
	
}
